//
//  JourneyParserModel1.m
//  ITrip
//
//  Created by 1564335 on 15-5-31.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "JourneyParserModel1.h"

@implementation JourneyParserModel1

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [NSMutableArray array];
        self.name = dic[@"name"];
        self.descrip = dic[@"description"];
        self.image_url = dic[@"image_url"];
        NSArray *array = dic[@"plan_days"];
        for (NSDictionary *dic in array) {
            JourneyParserModel2 *model = [[JourneyParserModel2 alloc] init:dic];
            [self.arrayData addObject:model];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
